home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2502 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: noc.tor.hookup.net!the-fix.sos.on.ca
  2. From: <verneb@the-fix.sos.on.ca>
  3. Date: Sun,21 Jan 96 19:24:42 -0500
  4. Newsgroups: comp.lang.c
  5. Subject: iHelp!  Dumb question for smart THINK C users.
  6. Message-ID: <tcpnntpd.16.1.21.19.24.42.2781597121.353061@the-fix.sos.on.ca>
  7. References: <stlabguest-2001961601280001@pm71001.scilab.wesleyan.edu>
  8. Organization: the FIX - Kitchener, Ontario CANADA
  9. NNTP-Posting-Host: the-fix.sos.on.ca
  10. X-MajorTCP-Version: MajorTCP/IP [1.81-5]
  11.  
  12. To: INT:stlabguest@wesleyan.e
  13.  
  14. This is a simple one!  If you had looked at your type at the time you 
  15. likely had typed printf without the 't'.  This happens quite regularly 
  16. with us professional typists!  Your first code was right but if your 
  17. printf was typed correctly you might have a compiler problem.  Do some 
  18. more playing around with it until you get more used to how it runs.  
  19. Good luck.
  20.     
  21.     Int:stlabguest@wesleyan.e,
  22.  
  23. I>I'm a total newbie to C programming, but I got a copy of THINK C yesterday
  24. I>and decided to try to learn.  So I tried a very simple program:
  25. I>
  26. I>..h>
  27. I>main()
  28. I>{
  29. I>printf(  "bla" );
  30. I>}
  31. I>
  32. I>It compiled without any errors, but when I tried to run it, it said that
  33. I>there was a link error: it didn't know what "prinf" meant.  I'm sure that
  34. I>it was loading the "STDIO.h" properly, because I changed the program to:
  35. I>
  36. I>..h>
  37. I>main()
  38. I>{
  39. I>printf(  "bla" );
  40. I>}
  41. I>
  42. I>and it told me it couldn't find the file "dummy.h"  What gives?  I thought
  43. I>my
  44. I>STDIO.h file might be the problem, but I tried a different copy in my
  45. I>school's computer lab and it still didn't work.
  46. I>
  47. I>Thanks in advance,
  48. I>
  49. I>-jacob eisenstein
  50. I>jacob@helpdesk.wesleyan.edu
  51. I>
  52.  
  53. Verne H. Bohlender
  54. Box 416, Chesley, Ontario.Ca. N0G 1L0
  55. verneb@The-Fix.sos.on.ca
  56. ___
  57. * UniQWK #2158*
  58.  
  59.